Skip to content

Conversation

Long1sland
Copy link
Contributor

Looking at the code I noticed that the toString function there was pointless considering the fact that js type coersion already converts the number to the string during concatenation. Also I also noticed the else block only returned true or false rather than the string as the question requested, so I added what I think is a fitting solution to that.

Looking at the code I noticed that the toString function there was pointless considering the fact that js type coersion already converts the number to the string during concatenation. Also I also noticed the else block only returned true or false rather than the string as the question requested, so I added what I think is a fitting solution to that.
@tahsintunan tahsintunan merged commit 4eddd55 into neetcode-gh:main Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants